

//sending data in GPU
__kernel
void in( __global float* in )
{
    ;
}

//receiveing data from GPU
__kernel
void out( __global float* out )
{
    int index = get_global_id(0);
    out[index] = 66;
}

//one channel simple kernel
__kernel
void in_out( __global float* in, __global float* out )
{
    int index = get_global_id(0);
    out[index] = in[index];
}

//multichannel simple kernel
__kernel
void in_out2(   __global float* in,
                __global float* out,
                __constant unsigned int* channelsInfo /*channelsNum_, channelLength_*/)
{
    unsigned int index = get_global_id(0);
    //out[index] = channelsInfo[0];
    for(unsigned int i = 0; i < channelsInfo[0]; ++i) {
        out[index] = in[index];
        index += channelsInfo[1];
    }
    
}